package cn.fan.model;

import cn.fan.model.child.*;
import com.alibaba.fastjson.annotation.JSONField;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Document(collection = "jcjc_detect_c4taskdetail")
public class JcjcDetectC4taskDetail  {
    @Id
    private String id;
//    @ApiModelProperty("检测作业id")
    private String detectJobId;
//    @ApiModelProperty("索引Id")
    private String indexId;
//    @ApiModelProperty("任务信息")
//    private Object taskAttr;
    private TaskAttr taskAttr;
//    @ApiModelProperty("支柱信息")
//    private Object pillarAttr;
    private PillarAttr pillarAttr;
//    @ApiModelProperty("区站信息")
//    private Object siteAttr;
    private SiteAttr siteAttr;
//    @ApiModelProperty("分析用户信息")
//    private Object analyseUserAttr;
    private AnalyseUserAttr analyseUserAttr;
//    @ApiModelProperty("分析状态（0：未完成，1：已完成，2：无效）")
    private Integer analyseStatus;
//    @ApiModelProperty("无效原因")
    private String invalidReason;
//    @ApiModelProperty("检测图片集合")
    private List<PictureList> pictureList;
//    private PictureList pictureList;
//    @ApiModelProperty("分析完成时间")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JSONField(
            format = "yyyy-MM-dd HH:mm:ss"
    )
    private Date completeTime;


}
